package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.DeviceTrainHistory;
import com.zhijian.medical.entity.vo.request.DeviceTrainHistorySearchVo;
import com.zhijian.medical.entity.vo.response.DeviceTrainHistoryVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceTrainHistoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(DeviceTrainHistory record);

    int insertSelective(DeviceTrainHistory record);

    DeviceTrainHistory selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DeviceTrainHistory record);

    int updateByPrimaryKey(DeviceTrainHistory record);

    int count(DeviceTrainHistorySearchVo deviceTrainHistorySearchVo);

    List<DeviceTrainHistoryVo> selectList(DeviceTrainHistorySearchVo deviceTrainHistorySearchVo);

    DeviceTrainHistoryVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<DeviceTrainHistory> entities);

    /**
     * 查询出某天最新数据的code
     *
     * @return
     */
    String selectMaxCodeByDay(String day);
}